// Online C++ compiler to run C++ program online
#include <iostream>
#include <string>


std::string test( std::string tmp) {
//    std::string tmp = str;
    std::cout << "str: %p" << &tmp <<"\n";
    std::cout << "tmp: %p" << &tmp <<"\n";
    tmp.insert(0, "1");
    return tmp;
}

int main() {
    // Write C++ code here
    std::string a = "abc";
    auto c = test(a);
    std::cout << a << "\n";
    std::cout << c << "\n";
    std::cout << "a: %p" << &a <<"\n";
    std::cout << "c: %p" << &c <<"\n";
    return 0;
}